]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
7 years agoci: Disable MR handling for now
Florian Müllner [Thu, 12 Sep 2019 12:50:22 +0000 (14:50 +0200)]
ci: Disable MR handling for now

We aren't quite ready to enforce non-legacy style for now, mostly due
to the xgettext bug that prevents us from using template strings in
some places, and vast amounts of legacy indentation.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/716

7 years agoci: Disallow legacy style in merge requests
Florian Müllner [Thu, 12 Sep 2019 11:51:26 +0000 (13:51 +0200)]
ci: Disallow legacy style in merge requests

In order to transition from the current legacy style to the modern
gjs one, use the MR line-filtering we used to do on common errors
to ensure new code complies with the new style.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/716

7 years agoci: Fail on any common lint errors
Florian Müllner [Thu, 12 Sep 2019 11:41:17 +0000 (13:41 +0200)]
ci: Fail on any common lint errors

Now that we fixed all pre-existing errors that are common between
regular and legacy configuration, we can stop filtering the result
by the lines modified by the merge request.

This will allow us to catch errors in merge requests that slipped
through until now, for example when leaving a newly-unused import
behind.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/716

7 years agocleanup: Don't assume hasOwnProperty() method on objects
Florian Müllner [Sat, 29 Jun 2019 23:05:27 +0000 (01:05 +0200)]
cleanup: Don't assume hasOwnProperty() method on objects

Since ES5, it is possible to create objects with no prototype at all:

    let foo = Object.create(null);

Those object won't have any builtin properties like hasOwnProperty(),
which is why eslint added a corresponding rule to its default rule set.

While this isn't an issue that affects our code, there's no harm in fol-
lowing the recommendation and call the method through Object.prototype.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/716

7 years agocleanup: "Only" use two indentation styles for object literals
Florian Müllner [Tue, 12 Feb 2019 14:02:09 +0000 (15:02 +0100)]
cleanup: "Only" use two indentation styles for object literals

We currently use no less than three different ways of indenting
object literals:

    let obj1 = {
        foo: 42,
        bar: 23,
    };

    let obj2 = { foo: 42,
                 bar: 23 };

    let obj3 = { foo: 42,
                 bar: 23
               };

The first is the one we want to use everywhere eventually, while the
second is the most commonly used "legacy" style.

It is the third one that is most problematic, as it throws off eslint
fairly badly: It violates both the rule to have consistent line breaks
in braces as well as the indentation style of both regular and legacy
configurations.

Fortunately the third style was mostly used for tween parameters, so
is quite rare after the Tweener purge. Get rid of the remaining ones
to cut down on pre-existing eslint errors.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/716

7 years agocleanup: Stop using Mainloop module
Florian Müllner [Mon, 19 Aug 2019 18:50:33 +0000 (20:50 +0200)]
cleanup: Stop using Mainloop module

It is deprecated in favor of the regular GLib functions.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/718

7 years agowindowMenu: Animate menu
GB_2 [Thu, 12 Sep 2019 16:01:46 +0000 (16:01 +0000)]
windowMenu: Animate menu

Most menus have an animation, so add one to the window menu for
consistency and better looks (like !712).

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/717

7 years agoUpdate Persian translation
Danial Behzadi [Thu, 12 Sep 2019 12:27:27 +0000 (12:27 +0000)]
Update Persian translation

7 years agoUpdate Brazilian Portuguese translation
Enrico Nicoletto [Thu, 12 Sep 2019 11:35:40 +0000 (11:35 +0000)]
Update Brazilian Portuguese translation

7 years agoextensionSystem: Add missing return value
Florian Müllner [Thu, 12 Sep 2019 10:40:46 +0000 (12:40 +0200)]
extensionSystem: Add missing return value

_callExtensionInit() should return whether the extension was initialized
successfully or not, but the early return added in commit 2a9e065cfb
doesn't.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/715

7 years agoextensionSystem: Always disable multiple extensions in reverse order
Jonas Dreßler [Mon, 19 Nov 2018 11:26:16 +0000 (12:26 +0100)]
extensionSystem: Always disable multiple extensions in reverse order

Since disabling an extension will lead to disabling and re-enabling all
following extensions in the list, always disable multiple extensions by
looping through the list in reverse order.

This lowers the execution time of the event handlers quite a bit if many
extensions are installed.

Thanks to Philippe Troin for identifying the problem and proposing the
initial patch to change the extension order when reloading.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/177

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionSystem: Only add to extensionOrder array if enabling worked
Jonas Dreßler [Mon, 9 Sep 2019 14:07:32 +0000 (16:07 +0200)]
extensionSystem: Only add to extensionOrder array if enabling worked

Only push uuids of newly enabled extensions to the `_extensionOrder`
array if enabling them was successful.

Otherwise, since `_callExtensionDisable()` doesn't remove uuids that
weren't successfully enabled from the array, those extensions get added
to the array multiple times when they're disabled and enabled.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionSystem: Always enforce disallowing extensions using sessionMode
Jonas Dreßler [Wed, 11 Sep 2019 18:24:17 +0000 (20:24 +0200)]
extensionSystem: Always enforce disallowing extensions using sessionMode

It's currently possible to circumvent the `sessionMode.allowExtensions`
property: For already enabled extensions one can call reloadExtension
via DBus, for new extensions it's possible by adding the extension to
the enabled-extensions gsettings key and setting the
disable-extension-version-validation key (which triggers a reload of
`this._enabledExtensions`) and then calling reloadExtension via DBus.

So to enforce `allowExtensions` while still allowing to update
extensions and keeping the extensionSystem synced with various gsettings
keys, replace the checks for `this._enabled` with simple checks for
`Main.sessionMode.allowExtensions` inside `_callExtensionInit()` and
`_callExtensionEnable()`.

The remaining checks for `this._enabled` are only small optimizations to
prevent running code on irrelevant sessionMode updates.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionSystem: Handle added or removed sessionMode extensions
Jonas Dreßler [Wed, 11 Sep 2019 18:18:20 +0000 (20:18 +0200)]
extensionSystem: Handle added or removed sessionMode extensions

Right now we're only handling added sessionMode extensions correctly on
sessionMode updates, also handle the other case and disable removed
sessionMode extensions on sessionMode updates.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionSystem: Rename initted to initialized
Jonas Dreßler [Wed, 11 Sep 2019 18:15:04 +0000 (20:15 +0200)]
extensionSystem: Rename initted to initialized

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionSystem: Log an extension error if loading the stylesheet failed
Jonas Dreßler [Wed, 11 Sep 2019 12:55:04 +0000 (14:55 +0200)]
extensionSystem: Log an extension error if loading the stylesheet failed

Instead of only logging a message that loading the extension stylesheet
failed and silently returning we should use `logExtensionError` for that
instead. This also sets the extension state to ERROR and makes sure we
don't try to enable it again.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionSystem: Check if extension exists before accessing property
Jonas Dreßler [Wed, 11 Sep 2019 12:36:18 +0000 (14:36 +0200)]
extensionSystem: Check if extension exists before accessing property

If the extension doesn't exist in the `this._extensions` Map, we'd try
to access `extension.dir` on undefined/null. So set the `dir` variable
after checking if `extension` is defined.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionSystem: Fix a wrong error message
Jonas Dreßler [Wed, 11 Sep 2019 12:23:44 +0000 (14:23 +0200)]
extensionSystem: Fix a wrong error message

The extension object is added to the `this._extensions` Map inside
`createExtensionObject`, not inside `loadExtension`.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionSystem: Remove unncessary return statements
Jonas Dreßler [Wed, 11 Sep 2019 12:54:13 +0000 (14:54 +0200)]
extensionSystem: Remove unncessary return statements

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agoextensionUtils: Check version variable for undefined first
Jonas Dreßler [Mon, 19 Nov 2018 11:26:16 +0000 (12:26 +0100)]
extensionUtils: Check version variable for undefined first

Avoid a warning message when trying to access requiredArray[2] by
checking if its undefined first.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96

7 years agodata: Lower TimeoutStartSec in systemd units
Iain Lane [Tue, 3 Sep 2019 11:45:24 +0000 (12:45 +0100)]
data: Lower TimeoutStartSec in systemd units

If there's a stubborn process in our cgroup, we shouldn't hang around
waiting for the default (30 seconds) before the session closes. We've
logged out, SIGTERMed and the thing is refusing to go away, let's not
make people hang around for ages.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/699

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Thu, 12 Sep 2019 04:26:07 +0000 (04:26 +0000)]
Update Turkish translation

7 years agoworkspace: Minor clarification
Florian Müllner [Fri, 23 Feb 2018 21:48:50 +0000 (22:48 +0100)]
workspace: Minor clarification

Code and comment were based on the old get_input_rect() and get_outer_rect()
method names that were changed to the more appropriate get_buffer_rect() and
get_frame_rect() a long time ago.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/713

7 years agobackgroundMenu: Animate menu opening
Florian Müllner [Wed, 11 Sep 2019 20:00:39 +0000 (22:00 +0200)]
backgroundMenu: Animate menu opening

The animation was removed in commit 6a00a504d4fc for consistency with
other menus. However commit a9b12d5d737dc then *added* animations to
those just four minutes later.

So add back the original animations for consistency, both with menu
closing and with other menus.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1595

7 years agoUpdate German translation
Christian Kirbach [Wed, 11 Sep 2019 21:14:44 +0000 (21:14 +0000)]
Update German translation

7 years agoworkspaceThumbnails: Replace loops with Array.find()
Florian Müllner [Sat, 3 Aug 2019 16:39:40 +0000 (16:39 +0000)]
workspaceThumbnails: Replace loops with Array.find()

This is much more idiomatic and concise than iterating over
thumbnails until we find the one we are looking for.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agooverview: Minor cleanup
Florian Müllner [Tue, 20 Aug 2019 02:25:24 +0000 (04:25 +0200)]
overview: Minor cleanup

Safe one indentation level by combining conditions.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agoworkspace: Use operator shorthand
Florian Müllner [Mon, 19 Aug 2019 19:12:21 +0000 (21:12 +0200)]
workspace: Use operator shorthand

Shorthands like a += b are well-established, so prefer them over the
less concise a = a + b.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agojsParse: Disambiguate regex
Florian Müllner [Tue, 20 Aug 2019 21:20:31 +0000 (23:20 +0200)]
jsParse: Disambiguate regex

Make it clear that /= is part of a regex and not an operator shorthand.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agoworkspace: Don't initialize variables to undefined
Florian Müllner [Mon, 19 Aug 2019 19:14:33 +0000 (21:14 +0200)]
workspace: Don't initialize variables to undefined

The declaration itself already does this implicitly.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agocalendar: Use template strings over concatenation
Florian Müllner [Mon, 19 Aug 2019 19:12:21 +0000 (21:12 +0200)]
calendar: Use template strings over concatenation

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agoutil: Separate statements with linebreak
Florian Müllner [Mon, 19 Aug 2019 19:13:52 +0000 (21:13 +0200)]
util: Separate statements with linebreak

Our eslint rules will soon forbid more than one statement per line.
We already follow that rule except for one lone offender; fix that.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agonetwork: Don't omit parens when constructing
Florian Müllner [Mon, 19 Aug 2019 19:13:01 +0000 (21:13 +0200)]
network: Don't omit parens when constructing

While it is legal to omit parentheses when invoking a constructor
with no arguments, we generally avoid that in our coding style.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agomessageTray: Add missing linebreak
Florian Müllner [Mon, 19 Aug 2019 19:08:38 +0000 (21:08 +0200)]
messageTray: Add missing linebreak

Methods should be separated by an empty lines, even when short.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agoibusManager: Wrap line before dot
Florian Müllner [Mon, 19 Aug 2019 19:12:13 +0000 (21:12 +0200)]
ibusManager: Wrap line before dot

When chaining function calls, our coding style asks for the dot to
start the new line, not end the preceding one.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agokbdA11yDialog: Avoid unnecessary ternary operators
Florian Müllner [Mon, 19 Aug 2019 19:22:20 +0000 (21:22 +0200)]
kbdA11yDialog: Avoid unnecessary ternary operators

A condition is already boolean, there's no point in explicitly
turning it into true/false.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agosystem: Properly separate statements
Florian Müllner [Mon, 19 Aug 2019 18:56:36 +0000 (20:56 +0200)]
system: Properly separate statements

Whoops, that's some typo that sneaked into commit 9c3b3320f8 ...

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agolookingGlass: Fix misleading typeof use
Florian Müllner [Mon, 19 Aug 2019 18:11:12 +0000 (20:11 +0200)]
lookingGlass: Fix misleading typeof use

typeof is an operator, not a function. Putting unneeded parentheses
around the expression obfuscates that.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agocleanup: Remove left-over imports
Florian Müllner [Mon, 19 Aug 2019 17:26:31 +0000 (19:26 +0200)]
cleanup: Remove left-over imports

Unfortunately this slipped through our CI tests, as the script
filters errors by lines that are modified by the corresponding
merge request.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

7 years agoUpdate Romanian translation
Daniel Șerbănescu [Wed, 11 Sep 2019 20:13:21 +0000 (20:13 +0000)]
Update Romanian translation

7 years agoUpdate Hungarian translation
Balázs Úr [Wed, 11 Sep 2019 20:11:51 +0000 (20:11 +0000)]
Update Hungarian translation

7 years agoUpdated Lithuanian translation
Aurimas Černius [Wed, 11 Sep 2019 19:37:29 +0000 (22:37 +0300)]
Updated Lithuanian translation

7 years agoUpdate Catalan translation
Jordi Mas [Wed, 11 Sep 2019 19:21:08 +0000 (21:21 +0200)]
Update Catalan translation

7 years agoUpdate Indonesian translation
Kukuh Syafaat [Wed, 11 Sep 2019 18:31:47 +0000 (18:31 +0000)]
Update Indonesian translation

7 years agoUpdate Polish translation
Piotr Drąg [Wed, 11 Sep 2019 17:22:04 +0000 (19:22 +0200)]
Update Polish translation

7 years agognome-extensions: Translate help command
Florian Müllner [Tue, 27 Aug 2019 16:11:33 +0000 (18:11 +0200)]
gnome-extensions: Translate help command

The quotes and COMMAND string aren't part of the syntax, so they
should be translated.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1538

7 years agoUpdated Czech translation
Marek Černocký [Wed, 11 Sep 2019 16:01:13 +0000 (18:01 +0200)]
Updated Czech translation

7 years agooverviewControls: Remove slide transitions before setting value manually
Jonas Dreßler [Mon, 9 Sep 2019 19:28:46 +0000 (21:28 +0200)]
overviewControls: Remove slide transitions before setting value manually

Remove transitions of the `slide-x` property of the layout manager
before we set the property to a fixed value, otherwise the transitions
might still be running and change the value after we set it.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/707

7 years agoUpdate Swedish translation
Anders Jonsson [Tue, 10 Sep 2019 23:53:06 +0000 (23:53 +0000)]
Update Swedish translation

7 years agoselectArea: Ignore motion events once we got a result
Marco Trevisan (Treviño) [Tue, 10 Sep 2019 06:49:50 +0000 (08:49 +0200)]
selectArea: Ignore motion events once we got a result

When selecting an area for screenshot we monitor the events while we've valid
coordinates in order to redraw the rubber band.
However, we don't stop ignore the motion events after button release and so
while animating. This might cause an unwanted effect if moving the mouse away
during fade out that is way more visible slowing-down the animations.

To fix this ignore any motion event once we've set the results.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/711

7 years agoci: Turn on -Werror
Florian Müllner [Tue, 10 Sep 2019 14:02:44 +0000 (16:02 +0200)]
ci: Turn on -Werror

Now that all compiler warnings are fixed, let's try to keep it that
way by making warnings fatal during CI.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/709

7 years agoshell: Replace another GTimeVal
Florian Müllner [Tue, 10 Sep 2019 02:40:15 +0000 (04:40 +0200)]
shell: Replace another GTimeVal

This slipped through in commit 9b7f228f8ef.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/709

7 years agocalendar-server: Temporarily ignore all deprecations in eds includes
Florian Müllner [Tue, 10 Sep 2019 14:20:34 +0000 (16:20 +0200)]
calendar-server: Temporarily ignore all deprecations in eds includes

Evolution draws in libsoup, which exposes deprecated types in its
API. While its headers have been fixed to guard the affected symbols,
those fixes aren't in our CI images yet.

Until we get a fixed version, just disable all deprecation warnings
during the include in order to not trip over "foreign" bugs.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/709

7 years agocalendar-server: Disable deprecated e-d-s API
Florian Müllner [Tue, 10 Sep 2019 02:44:10 +0000 (04:44 +0200)]
calendar-server: Disable deprecated e-d-s API

We aren't using any deprecated evolution-data-server API, so we can
turn it off; this avoids compiler warnings for glib deprecations
used by those functions, which makes it harder to spot warnings for
our own code base.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/709

7 years agobuild: Exclude private headers from GIR
Florian Müllner [Tue, 10 Sep 2019 13:51:38 +0000 (15:51 +0200)]
build: Exclude private headers from GIR

They contain API that is explicitly not meant to be used externally
and - as it uses the "wrong" namespace due to the _ prefix - doesn't
end up in the introspection data anyway.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/709

7 years agobuild: Remove st-private.h from "public" headers
Florian Müllner [Tue, 10 Sep 2019 13:49:39 +0000 (15:49 +0200)]
build: Remove st-private.h from "public" headers

It is currently listed both as public and private header, which is
clearly bonkers. As the name implies, the latter is correct ...

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/709

7 years agoUpdate Polish translation
Piotr Drąg [Tue, 10 Sep 2019 15:58:11 +0000 (17:58 +0200)]
Update Polish translation

7 years agoenvironment: Skip property animations while hidden
Florian Müllner [Tue, 10 Sep 2019 13:28:42 +0000 (15:28 +0200)]
environment: Skip property animations while hidden

For implicit animations, Clutter will skip any transitions while
an actor is unmapped, and just set the property directly. Do the
same in our ease_property() convencience method.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/708

7 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 10 Sep 2019 13:56:03 +0000 (15:56 +0200)]
Updated Spanish translation

7 years agoUpdate Finnish translation
Jiri Grönroos [Tue, 10 Sep 2019 11:11:21 +0000 (11:11 +0000)]
Update Finnish translation

7 years agoUpdate Indonesian translation
Kukuh Syafaat [Tue, 10 Sep 2019 07:12:48 +0000 (07:12 +0000)]
Update Indonesian translation

7 years agoUpdate Romanian translation
Daniel Șerbănescu [Tue, 10 Sep 2019 06:48:29 +0000 (06:48 +0000)]
Update Romanian translation

7 years agoUpdate Italian translation
Milo Casagrande [Tue, 10 Sep 2019 06:47:05 +0000 (06:47 +0000)]
Update Italian translation

7 years agoUpdate Hungarian translation
Balázs Úr [Tue, 10 Sep 2019 04:40:55 +0000 (04:40 +0000)]
Update Hungarian translation

7 years agoUpdate Galician translation
Fran Dieguez [Mon, 9 Sep 2019 22:45:51 +0000 (22:45 +0000)]
Update Galician translation

7 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Mon, 9 Sep 2019 22:44:55 +0000 (22:44 +0000)]
Update Brazilian Portuguese translation

7 years agoappDisplay: Allow editing folder names
Georges Basile Stavracas Neto [Sun, 1 Sep 2019 17:12:42 +0000 (14:12 -0300)]
appDisplay: Allow editing folder names

Add a new popover with a regular entry + button to rename
folders. The layout is similar to other GNOME applications.

The popup is implemented as a PopupMenu subclass, leaving
the grab management to PopupMenuManager.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/675

7 years agoextensionPrefs: Block notify::active signal handler while updating state
Jonas Dreßler [Mon, 9 Sep 2019 15:08:53 +0000 (17:08 +0200)]
extensionPrefs: Block notify::active signal handler while updating state

We disable and enable extensions inside the `notify::active` signal
handler, but we shouldn't do that in case the change didn't come from
the user but because something else changed the state of the extension.

This causes an issue when the extensionPrefs window is open and the
session gets locked: The extensions are temporarily disabled by the
shell, extensionPrefs updates its switches on the state change and adds
those extensions to the `disabled-extensions` gsettings key inside the
signal handler. Now when the session is unlocked again, the extensions
won't be enabled again since they're forced-disabled.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/705

7 years agoextensionPrefs: Connect to ExtensionStateChanged after building UI
Jonas Dreßler [Mon, 9 Sep 2019 15:06:55 +0000 (17:06 +0200)]
extensionPrefs: Connect to ExtensionStateChanged after building UI

Since we manipulate parts of the UI (like the switch) in this signal
handler, let's only connect it after setting up the UI.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/705

7 years agoiconGrid: Queue a relayout after child opacity changes
Jonas Dreßler [Fri, 6 Sep 2019 09:50:52 +0000 (11:50 +0200)]
iconGrid: Queue a relayout after child opacity changes

We're using a vfunc override for `get_paint_volume` to exclude children
with an opacity of 0 from the paint volume and thus decrease the size of
the area we need to paint.

Now if the paint volume is requested during the spring animation (the
real icons are hidden using an opacity of 0 and clones are used for the
animation), `get_paint_volume` returns a paint volume with a height of
0. After that, the spring animation finishes and the icon-opacities are
set to 255 in `_resetAnimationActors`, and since we cache paint volumes
and there's no reason for Clutter to assume it got invalid, the icons
end up not being painted.

Fix this by queuing a relayout of the grid when the opacity of a child
is changed from or to 0, which manually invalidates the paint volume.

The reason why this is not an issue with the paginated icon grid
(all-apps view) is probably because StScrollView invalidates the paint
volume a lot more often than regular containers.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1502

7 years agoiconGrid: Delete private child property when removing child
Jonas Dreßler [Sun, 8 Sep 2019 16:09:23 +0000 (18:09 +0200)]
iconGrid: Delete private child property when removing child

Delete a private property we set when the child got added to make sure
the reference is deleted after the child got removed from the grid.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/704

7 years agoextensionSystem: Use logError to record extension errors with stack trace
Marco Trevisan (Treviño) [Mon, 2 Sep 2019 12:01:36 +0000 (14:01 +0200)]
extensionSystem: Use logError to record extension errors with stack trace

Extensions might emit JS errors explicitly or implicitly, however GNOME
Shell doesn't present any stack trace for those making them quite hard
to debug.

Make this easier by logging errors with logError() whichs includes the
stack dump.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agosystem: Track buttonGroup visibility using a group of actors
Marco Trevisan (Treviño) [Sat, 31 Aug 2019 21:09:04 +0000 (23:09 +0200)]
system: Track buttonGroup visibility using a group of actors

Cleanup the visibility check on actions by using an array of actors to
track, so that we don't repeat the same variables multiple times.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agopopupMenu: Remove extra parameter on boolean ParamSpec initialization
Marco Trevisan (Treviño) [Fri, 9 Aug 2019 00:17:49 +0000 (02:17 +0200)]
popupMenu: Remove extra parameter on boolean ParamSpec initialization

PopupBaseMenuItem properties were initialized using wrong param spec
signature, fix this by removing the extra parameter.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agocalendar: Use binding for clearButton visibility
Marco Trevisan (Treviño) [Sat, 31 Aug 2019 18:43:05 +0000 (20:43 +0200)]
calendar: Use binding for clearButton visibility

When the calendar PlaceHolder is visible, the ClearButton shouldn't
be. Instead of setting the visibility explicitly, we can use a property
binding.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agoworkspacesDisplay: Disconnect MetaLater and parent signals on destroy
Marco Trevisan (Treviño) [Mon, 12 Aug 2019 14:25:48 +0000 (16:25 +0200)]
workspacesDisplay: Disconnect MetaLater and parent signals on destroy

When the WorkspacesDisplay actor is destroyed we should remove the
ongoing later and parent widget connections to avoid accessing an
invalid object on callback.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agoworkspace: Don't use clones' delegate to check children
Marco Trevisan (Treviño) [Fri, 12 Jul 2019 12:00:55 +0000 (14:00 +0200)]
workspace: Don't use clones' delegate to check children

The WindowClones are now themselves actors, so we can just check for
their type instead of checking for the delegate.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agoworkspace: Use Workspace prefix for WindowClone class
Marco Trevisan (Treviño) [Fri, 12 Jul 2019 11:55:24 +0000 (13:55 +0200)]
workspace: Use Workspace prefix for WindowClone class

We have both Workspace's WindowClone and workspaceThumbnail's WindowClone,
so better to be clear about them using a class prefix.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agoworkspace: Remove Long-press later with the actor
Marco Trevisan (Treviño) [Fri, 12 Jul 2019 11:53:33 +0000 (13:53 +0200)]
workspace: Remove Long-press later with the actor

Ensure that the long-press later is removed with the actor, otherwise
it will try to use invalidated data.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agostatus/keyboard: Make Input source types var
Marco Trevisan (Treviño) [Fri, 10 May 2019 21:17:55 +0000 (23:17 +0200)]
status/keyboard: Make Input source types var

These are used by keyboard so they need to be readable outside the
status.keyboard module.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agosearch: Remove updateSearch later on destruction
Marco Trevisan (Treviño) [Sat, 31 Aug 2019 21:40:52 +0000 (23:40 +0200)]
search: Remove updateSearch later on destruction

When the GridSearchBase actor is destroyed we should remove the
ongoing later that might try to access to invalid resources.

To do this, add an _onDestroy() callback function to SearchResultsBase
and override it in GridSearchBase.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agolocatePointer: Bind ripples creation to settings
Marco Trevisan (Treviño) [Fri, 30 Aug 2019 23:57:12 +0000 (01:57 +0200)]
locatePointer: Bind ripples creation to settings

Don't create ripples if locate pointer is not enabled, and bind
creation to the relative desktop interface settings key.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agoripples: Add destroy() method and remove them when unneeded
Marco Trevisan (Treviño) [Fri, 30 Aug 2019 23:40:53 +0000 (01:40 +0200)]
ripples: Add destroy() method and remove them when unneeded

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agorealmd: Set login format to null on start and update if invalid
Marco Trevisan (Treviño) [Thu, 23 May 2019 04:12:56 +0000 (06:12 +0200)]
realmd: Set login format to null on start and update if invalid

We were checking an undefined property but that would lead to a a warning.
Instead we can consider the login format unset until is null, and in case
update it.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agomessageTray: Remove unused source object parameter
Marco Trevisan (Treviño) [Fri, 12 Jul 2019 12:58:42 +0000 (14:58 +0200)]
messageTray: Remove unused source object parameter

This is has been added in commit b150869b5 but is never used

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agokeyboard: Treat menu items as actors
Marco Trevisan (Treviño) [Fri, 12 Jul 2019 23:50:58 +0000 (01:50 +0200)]
keyboard: Treat menu items as actors

This is a leftover of GNOME/gnome-shell!499, since menu items are all
actors now, we can just avoid using the actor property when adding an
action item.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agolookingGlass: Throw a clearer error on referencing invalid result index
Marco Trevisan (Treviño) [Mon, 20 May 2019 21:27:48 +0000 (23:27 +0200)]
lookingGlass: Throw a clearer error on referencing invalid result index

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agolightbox: Use common ease parameters and avoid similar codepaths
Marco Trevisan (Treviño) [Wed, 31 Jul 2019 12:10:31 +0000 (14:10 +0200)]
lightbox: Use common ease parameters and avoid similar codepaths

Easing calls on show/hide functions have some parameters in common whether the
radial effect is enabled or not.

So instead of doing repeated calls with similar parameters, initialize common
values in params objects.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agoaltTab: use AltTab prefix on AppIcon class
Marco Trevisan (Treviño) [Fri, 19 Apr 2019 06:02:00 +0000 (09:02 +0300)]
altTab: use AltTab prefix on AppIcon class

There's an AppIcon class on appDisplay, so it won't be easy to discern
the one we're going to add in altTab.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agoanimation: Stop the animation before removing all the children
Marco Trevisan (Treviño) [Fri, 14 Jun 2019 14:48:16 +0000 (17:48 +0300)]
animation: Stop the animation before removing all the children

If the resource scale or the scale factor changes while the animation
is playing, we need to stop the animation and start it again once the
texture is loaded, as the idle might try to access an invalidated
animation child otherwise.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

7 years agoBump version to 3.34.0
Florian Müllner [Mon, 9 Sep 2019 19:20:50 +0000 (19:20 +0000)]
Bump version to 3.34.0

Update NEWS.

7 years agost-clipboard: Add trailing 0 to pasted text
Carlos Garnacho [Mon, 9 Sep 2019 15:43:17 +0000 (17:43 +0200)]
st-clipboard: Add trailing 0 to pasted text

We translate the raw stream content far too directly into a char*,
it notably forgets that the stream does not have nul-ended data,
this means we are potentially adding garbage after the pasted content.

Tentatively fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1570

7 years agoUpdate French translation
Claude Paroz [Sun, 8 Sep 2019 15:44:41 +0000 (15:44 +0000)]
Update French translation

7 years agoUpdate Hungarian translation
Balázs Meskó [Sat, 7 Sep 2019 18:25:17 +0000 (18:25 +0000)]
Update Hungarian translation

7 years agoUpdate Slovak translation
Dušan Kazik [Sat, 7 Sep 2019 14:20:05 +0000 (14:20 +0000)]
Update Slovak translation

7 years agoUpdate Turkish translation
Sabri Ünal [Sat, 7 Sep 2019 07:16:54 +0000 (07:16 +0000)]
Update Turkish translation

7 years agoUpdate Esperanto translation
Carmen Bianca BAKKER [Fri, 6 Sep 2019 23:22:30 +0000 (23:22 +0000)]
Update Esperanto translation

7 years agoUpdate Greek translation
Efstathios Iosifidis [Fri, 6 Sep 2019 21:05:07 +0000 (21:05 +0000)]
Update Greek translation

7 years agoUpdate Japanese translation
Ryuta Fujii [Fri, 6 Sep 2019 13:58:48 +0000 (13:58 +0000)]
Update Japanese translation

7 years agoUpdate Japanese translation
Ryuta Fujii [Fri, 6 Sep 2019 13:52:41 +0000 (13:52 +0000)]
Update Japanese translation